package chapte04.Example20;

class Outer {
    void t1() {
        System.out.println("t1");
    }

    class Inner {
        int m = 0;
       void t1(){
           System.out.println("t1");
       }
       static class Is{
           void show(){
               System.out.println("我是静态内部类IS");
           }
           static void s(){
               System.out.println("静态方法s()");
           }
       }
        void show1() {
            System.out.println("m="+m);
            t1();
        }

        void show2() {
            System.out.println("show2()");
        }
    }

    void t2() {
        Inner inner = new Inner();
        System.out.println("Inner.n" + inner.m);
        inner.show2();
    }
}

public class Example20 {
    public static void main(String[] args) {
        Outer outer = new Outer();
        Outer.Inner inner = outer.new Inner();
        inner.show1();
        outer.t2();

    }
}
